
import json

s2 = '{"type":"checkbox","des":"配套设施","data":[{"des":"电视","value":"tv","chose":""},{"des":"做饭","value":"cook","chose":true},{"des":"空调","value":"air","chose":true}]}'
try:

    s2_input = eval(s2)
    print("eval")
except:
    s2_input = json.loads(s2)
    print("json")
print(s2_input)